package track
{
	import utils.Vector2D;

	/**
	 * 4	矩形轨迹
	 **/
	public class TrackRect extends TrackProto
	{
		private static var _instance:TrackRect;
		public function TrackRect():void
		{
			super();
		}
		
		public static function getInstance():TrackRect{
			return _instance ||= new TrackRect();
		}
		
		override public function make(subTypeId:uint):Array{
			switch(subTypeId)
			{
				case 0:
				{
					pathArr.push(new Vector2D(116, 80));
					pathArr.push(new Vector2D(790, 80));
					pathArr.push(new Vector2D(790, 510));
					pathArr.push(new Vector2D(116, 510));
					break;
				}
				case 1:
				{
					pathArr.push(new Vector2D(190, 114));
					pathArr.push(new Vector2D(710, 114));
					pathArr.push(new Vector2D(710, 476));
					pathArr.push(new Vector2D(190, 476));
					break;
				}
				case 2:
				{
					pathArr.push(new Vector2D(274, 160));
					pathArr.push(new Vector2D(638, 160));
					pathArr.push(new Vector2D(638, 412));
					pathArr.push(new Vector2D(274, 412));
					break;
				}
				case 3:
				{
					pathArr.push(new Vector2D(190, 114));
					pathArr.push(new Vector2D(710, 114));
					pathArr.push(new Vector2D(710, 476));
					pathArr.push(new Vector2D(190, 476));
					break;
				}
				default:
				{
					pathArr.push(new Vector2D(332, 200));
					pathArr.push(new Vector2D(580, 200));
					pathArr.push(new Vector2D(600, 372));
					pathArr.push(new Vector2D(332, 372));
					break;
				}
			}
			return pathArr;
		}
	}
}